package tree;

//命令
class LeafCmd {
    public var Kind : LeafCmdKind;
    private var Data : Dynamic;
    public function new(kind:LeafCmdKind, data:Dynamic) {
        this.Kind = kind;
        this.Data = data;
    }

    public function GetData<T>() : T {
        var res : T = cast Data;
        return res;
    }
}
